export interface LoginDetailContent {
  pid?: number
  version?: string
  body?: object
  params?: object
  query?: string
  statusCode?: number
  error?: string
  stack?: string
}

export interface LogDetailResult extends LogPageResultItem {
  id: number
  bizType: string
  bizId: string
  operatorId: number
  operatorName: string
  operation: string
  content: LoginDetailContent
  requestId: string
  path: string
  ip: string
  ua: string
  isError: boolean
  createdAt: string
}

export interface LogPageResultItem {
  operatorName: string
  isError: boolean
  requestId: string
  ip: string
  ua: string
  createdAt: string
}

export interface LogPageParams {
  operatorName?: string
  isError?: boolean
  startTime?: string
  endTime?: number
  pageNum?: number
  pageSize?: number
}
